package com.yenlien.traceyun.business.entity;

import com.yenlien.traceyun.webase.entity.BaseIdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.Date;

/**
 * @author: bigwangy@sina.com
 * @create: 2020-12-22
 * @description:空码申请记录
 **/

@Entity(name = "t_spacebox_record")
public class SpaceBoxRecord extends BaseIdEntity {

    /**
     * 公司id
     */
    @Column(name = "company_id", length = 32)
    private String companyId;

    /**
     * appid
     */
    @Column(name = "app_id", length = 32)
    private String appId;

    /**
     * 公司名称
     */
    @Column(name = "company_name", length = 32)
    private String companyName;

    /**
     * 申请数量
     */
    @Column(name = "box_num", length = 8)
    private int boxNum;

    /**
     * 申请时间
     */
    @Column(name = "createtime")
    private Date createtime;

    /**
     * 是否通过
     */
    @Column(name = "passed", length = 1)
    private boolean passed;

    /**
     * 是否下载
     */
    @Column(name = "downloaded", length = 1)
    private boolean downloaded;

    @Column(name = "subId", length = 255)
    private String subId;       //分包ID

    private String subpackageBatch;         //申请批次号

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public int getBoxNum() {
        return boxNum;
    }

    public void setBoxNum(int boxNum) {
        this.boxNum = boxNum;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public boolean isPassed() {
        return passed;
    }

    public void setPassed(boolean passed) {
        this.passed = passed;
    }

    public boolean isDownloaded() {
        return downloaded;
    }

    public void setDownloaded(boolean downloaded) {
        this.downloaded = downloaded;
    }

    public String getSubpackageBatch() {
        return subpackageBatch;
    }

    public void setSubpackageBatch(String subpackageBatch) {
        this.subpackageBatch = subpackageBatch;
    }

    public String getSubId() {
        return subId;
    }

    public void setSubId(String subId) {
        this.subId = subId;
    }
}
